package com.stx.threeGrup.model.automodel;


import java.io.Serializable;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;

import java.util.Date;

public class LoveBoke implements Serializable {
    private Integer bokeId;

    private String bokeTitle;

    private String bokeContext;

    private String bokeDate;

    private Integer userId;

    private String bokeGood;

    private String bokeImg;

    private static final long serialVersionUID = 1L;

    public Integer getBokeId() {
        return bokeId;
    }

    public void setBokeId(Integer bokeId) {
        this.bokeId = bokeId;
    }

    public String getBokeTitle() {
        return bokeTitle;
    }

    public void setBokeTitle(String bokeTitle) {
        this.bokeTitle = bokeTitle == null ? null : bokeTitle.trim();
    }

    public String getBokeContext() {
        return bokeContext;
    }

    public void setBokeContext(String bokeContext) {
        this.bokeContext = bokeContext == null ? null : bokeContext.trim();
    }

    public String getBokeDate() {
//        SimpleDateFormat date = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
//        return date.format(bokeDate);
        return bokeDate;
    }

    public void setBokeDate(String bokeDate) {
    /*    DateFormat format1 = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
        Date parse = null;
        try {
            parse = format1.parse(bokeDate);
            ;
        } catch (ParseException e) {
            e.printStackTrace();
        }*/
        this.bokeDate = bokeDate;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getBokeGood() {
        return bokeGood;
    }

    public void setBokeGood(String bokeGood) {
        this.bokeGood = bokeGood == null ? null : bokeGood.trim();
    }

    public String getBokeImg() {
        return bokeImg;
    }

    public void setBokeImg(String bokeImg) {
        this.bokeImg = bokeImg == null ? null : bokeImg.trim();
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", bokeId=").append(bokeId);
        sb.append(", bokeTitle=").append(bokeTitle);
        sb.append(", bokeContext=").append(bokeContext);
        sb.append(", bokeDate=").append(bokeDate);
        sb.append(", userId=").append(userId);
        sb.append(", bokeGood=").append(bokeGood);
        sb.append(", bokeImg=").append(bokeImg);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}